package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

@Data
@Api("入库订单主体")
@TableName("t_purchase")
public class PurchaseBean {
    @TableId("pk_purchaseId")
    private long purchaseId;
    private SupplierBean supplierBean;
    private UserBean userBean;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate purchaseDate = LocalDate.now();
    private List<PurchaseInfoBean> purchaseInfoList;
//    private long allPrice;
}
